import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../../src/views/index.vue';
import Login from '../../src/views/login.vue';

Vue.use(VueRouter)

const routes = [
    {
      path: '/',
      name: 'login',
      component: Login,
    },
    {
      path: '/index',
      name: 'index',
      component: Index,
    },
    {
  path: '/',
  name: 'index',
  component: () => import('../views/index.vue')
}]

const router = new VueRouter({
  routes
})


export default router